<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User extends CI_Controller {

	public function manageUser()
	{
	
		$this->load->view('template/template');
		$this->load->view('user/manageUser');
		$this->load->view('template/footer');
		
	 
	}
	public function position()
	{
		$this->load->view('template/template');
		$this->load->view('user/position');
		$this->load->view('template/footer');
	}
	public function department()
	{
		$this->load->view('template/template');
		$this->load->view('user/department');
		$this->load->view('template/footer');
	}
	public function permission()
	{
		$this->load->view('template/template');
		$this->load->view('user/permission');
		$this->load->view('template/footer');
	}		
	
	///////////////////////////////////////////////
	
	public function getAllUser(){
		echo $this->user_model->getUser();
	}
	
	public function deleteUser(){
		print_r( $this->input->post());
		 
		echo "aaaaaaaaaaaa";
	}
	
	
	public function addUser(){
		//echo  "===>" .$this->input->post("user_email");
		////echo $_POST["user_email"];
		//echo "<br>===============================<br>";
		print_r( $this->input->post());
		//print_r( $_POST);
		/*
	    echo $this->input->post("user_username");
	 	echo $this->input->post("user_fname");
	 	print_r($_POST["models"]);
	 	
		//print_r(json_decode($_GET));
		print_r(json_decode($_POST["models"]));
		$data = json_decode($_POST["models"]);
		
	echo $data["user_name"];
	*/
		//print_r($data);
	}
	//////////////////////////////////////////////////
}
 